package com.hancher.gamelife2.position;

import androidx.room.Entity;
import androidx.room.Index;
import androidx.room.PrimaryKey;

import com.hancher.common.javautil.UuidUtil;

import lombok.Data;

/**
 * 描述 : 数据库实体类 <br/>
 * 时间 : 2023/12/2 11:48 <br/>
 * 作者 : Hancher ytu_shaoweijie@163.com
 */
@Entity(tableName = "position", indices = {@Index(value = "uuid", unique = true)})
@Data
public class PositionPO {

    @PrimaryKey
    Long id;
    String uuid = UuidUtil.getUuidNoLine();
    Long createTime = System.currentTimeMillis();
    Long updateTime = System.currentTimeMillis();
    Byte deleteflag = 0;

    //经纬度
    Double longitude;
    Double latitude;
    //国家
    String country;
    String countryCode;
    //省
    String province;
    String provinceCode;
    //城市
    String city;
    String cityCode;
    //街道
    String district;
    String districtCode;
    //周围
    String poiName;
    String poiType;
    String poiAddress;
    /**
     *定位类型(gps/net/offline/cache)
     */
    String locType;
    /**
     * 定位模式(hightAccuracy/batterySaving/deviceSensors)
     */
    String locMode;
    /**
     * 定位协议(GCJ02 国标/BD09ll 百度经纬度/BD09 百度墨卡托)
     */
    String coorType;
    Long time;
}
